package cn.iocoder.mall.user.application.vo.message;

import cn.iocoder.common.utils.common.system.util.Long2StringSerializer;
import cn.iocoder.common.utils.common.system.util.String2LongDeserialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/***
 *@author yinxucun
 *@date 2019-12-05 11:36 
 */
@Data
@Accessors(chain = true)
public class AppMessageVO {

    @JsonSerialize(using = Long2StringSerializer.class)
    @JsonDeserialize(using = String2LongDeserialize.class)
    private Long id;

    private String content;
    private String  title;
    private String creator;
    private Integer type;
    private String receiver;
    private Integer templateId;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String entitiesId;
    private Integer isRead;
}
